<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<s:url var="regionsUrl" action="getRegions"  namespace="/"/>
<s:url var="countryCodeUrl" action="getCountryCode" namespace="/"/>

<s:select label="Country" name="countries.country" id="country"
          headerKey="" headerValue="Choose a Country"
          list="countries"
          listKey="countryId"
          listValue="country"
          onchange="getRegions(this.value, $('#country option:selected').text(), '%{regionsUrl}');fillCountryCode(this.value, '%{countryCodeUrl}');">
</s:select>
